﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model.Query
{

    /// <summary>
    /// 动态查询用户实体类
    /// </summary>
    [Serializable]
    public class User : IQuery
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public string Userid
        {
            get;
            set;
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Username
        {
            get;
            set;
        }

        /// <summary>
        /// 机构编号
        /// </summary>
        public string OrgID
        {
            set;
            get;
        }

        /// <summary>
        /// 角色编号
        /// </summary>
        public string RoleID
        {
            set;
            get;
        }

        /// <summary>
        /// 是否主用户
        /// </summary>
        public bool? IsAdmin
        {
            get;
            set;
        }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool? Isusing
        {
            get;
            set;
        }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool? Isonline
        {
            get;
            set;
        }

        /// <summary>
        /// 最后登陆时间(从)
        /// </summary>
        public DateTime? LastlogintimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 最后登陆时间(至)
        /// </summary>
        public DateTime? LastlogintimeTo
        {
            get;
            set;
        }
        /// <summary>
        /// 是否疾控
        /// </summary>
        public bool? IsJK
        {
            set;
            get;
        }

        /// <summary>
        /// 排序字段【格式如：UserID ASC,UserName DESC, IsAdmin ASC】
        /// </summary>
        public string SortFields
        {
            get;
            set;
        }
        /// <summary>
        /// 自定义查询字段[格式: UserID = '1234' AND Name = 'Zeus2' AND ID NOT (SELECT ID FROM XX)]
        /// </summary>
        public string Append { get; set; }
    }
}
